package com.dkd.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

/**
 * 售货机货道对象 tb_channel
 *
 * @author yuwei
 * @date 2024-09-02
 */
@ApiModel(description = "售货机货道对象")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder//快速实现对象属性的复制操作
public class Channel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键", example = "1")
    private Long id;

    /** 货道编号 */
    @Excel(name = "货道编号")
    @ApiModelProperty(value = "货道编号", example = "A001")
    private String channelCode;

    /** 商品Id */
    @Excel(name = "商品Id")
    @ApiModelProperty(value = "商品Id", example = "1")
    private Long skuId;

    /** 售货机Id */
    @Excel(name = "售货机Id")
    @ApiModelProperty(value = "售货机Id", example = "1")
    private Long vmId;

    /** 售货机软编号 */
    @Excel(name = "售货机软编号")
    @ApiModelProperty(value = "售货机软编号", example = "V001")
    private String innerCode;

    /** 货道最大容量 */
    @Excel(name = "货道最大容量")
    @ApiModelProperty(value = "货道最大容量", example = "50")
    private Long maxCapacity;

    /** 货道当前容量 */
    @Excel(name = "货道当前容量")
    @ApiModelProperty(value = "货道当前容量", example = "30")
    private Long currentCapacity;

    /** 上次补货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次补货时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "上次补货时间", example = "2024-09-02")
    private Date lastSupplyTime;

}